<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

class Home extends CI_Controller {

    //put your code here
    public function __construct() {
        parent::__construct();
        $this->load->helper(array('url','form'));
    }

    function index() {
        $this->load->model('ga_model');
        $ga_di=$this->ga_model->load_all();
        $data['sanbaydi']=$ga_di->result_array();
        $this->load_html2('khachhang/home_view','khachhang/popup_chonclass',$data);
    }
    function load_html($path,$data) {
        $this->load->view('common/khachhang/header_view',$data);
        $this->load->view($path,$data);
        $this->load->view('common/khachhang/footer_view',$data);
    }
    function load_html2($path1,$path2,$data) {
        $this->load->view('common/khachhang/header_view',$data);
        $this->load->view($path1,$data);
        $this->load->view($path2,$data);
        $this->load->view('common/khachhang/footer_view',$data);
    }
}

?>